package com.xindaoapp.happypet.protocol;

import java.util.ArrayList;
import java.util.List;

/**
 * 上传队列
 * 
 * @author chenghao
 * 
 */
public class UploaQueueImpl {
    private final List<PostQueue> list = new ArrayList<PostQueue>();

    public List<PostQueue> getPostQueue() {
        return list;
    }

    /**
     * 发送正文的时候，将其添加到发送队列里面
     * 
     * @param impl
     */
    public void addQueue(PostQueue impl) {
        list.add(impl);
    }

    public void removeQueue(PostQueue impl) {
        list.remove(impl);
    }

    public void removeAll() {
        list.clear();
    }

}
